
from django.conf.urls import url,include
from . import views
from rest_framework import routers
from rest_framework_swagger.views import get_swagger_view


from .analysis.captcha_views import AYCaptchaSendView,AYCaptchaCheckView,AYCaptchaNoticeView
from .analysis.entry_views import AYEntryQueryView,AYEntryActionView

router = routers.DefaultRouter()

schema_view = get_swagger_view(title="avison-young api docs")


urlpatterns = [

    url(r'^$', views.index),  # new
    url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
    url(r'^api/', include(router.urls)),
    url(r'^docs/$', schema_view),

    AYCaptchaSendView.url_array(),
    AYCaptchaCheckView.url_array(),
    AYCaptchaNoticeView.url_array(),

    AYEntryQueryView.url_array(),
    AYEntryActionView.url_array(),

]